package com.example.ResumeWorkPlatform;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.example.ResumeWorkPlatform.rest.GerdenRest;


/**
 * 
 * @ClassName: ConfigRunner
 * @Description: 启动加载类
 * @Copyright: smartlab411
 * @Author hudaofan
 * @Date Oct 16, 2020 3:21:00 PM
 */
@Component
public class ConfigRunner implements ApplicationRunner {

	private static final Logger log = LoggerFactory.getLogger(ConfigRunner.class);
	
	@Autowired
	GerdenRest gerdenRest;

	public void run(ApplicationArguments args) throws Exception {
		
		gerdenRest.addGerden();
		log.info("1.工业园区创建成功！");
	}

}
